package com.railway.bean;

import java.util.Date;

/**
 * @author 33676
 *
 */
public class Pass {
	
	private int pass_id;//车次经过id
	
	private int train_id;//车次id
	
	private int station_id;//站id
	
	private String station_name;//站名
	
	private int No;//排序
	
	private Date pass_time;//途径时间

	private int standing_time;//停留时间
	
	private double next_distance;//到下一站的距离
	
	private Date depart_time;//出发时间
	
	
	public int getPass_id() {
		return pass_id;
	}


	public void setPass_id(int pass_id) {
		this.pass_id = pass_id;
	}


	public int getTrain_id() {
		return train_id;
	}


	public void setTrain_id(int train_id) {
		this.train_id = train_id;
	}


	public int getStation_id() {
		return station_id;
	}


	public void setStation_id(int station_id) {
		this.station_id = station_id;
	}


	public int getNo() {
		return No;
	}


	public void setNo(int no) {
		No = no;
	}


	public Date getPass_time() {
		return pass_time;
	}


	public void setPass_time(Date pass_time) {
		this.pass_time = pass_time;
		long i = getStanding_time() * 60 * 1000;
		long j = pass_time.getTime();
		depart_time = new Date(i+j);
	}


	public int getStanding_time() {
		return standing_time;
	}


	public void setStanding_name(int standing_time) {
		this.standing_time = standing_time;
	}


	public double getNext_distance() {
		return next_distance;
	}


	public void setNext_distance(double next_distance) {
		this.next_distance = next_distance;
	}

	

	public String getStation_name() {
		return station_name;
	}


	public void setStation_name(String station_name) {
		this.station_name = station_name;
	}


	public void setStanding_time(int standing_time) {
		this.standing_time = standing_time;
	}


	public Pass(int pass_id, int train_id, int station_id, int no,
			double next_distance) {
		super();
		this.pass_id = pass_id;
		this.train_id = train_id;
		this.station_id = station_id;
		No = no;
		this.pass_time = pass_time;
		this.standing_time = standing_time;
		this.next_distance = next_distance;
	}


	public Pass() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
}
